package com.zmx.user.web.rest;

import com.zmx.user.api.MemberApi;
import com.zmx.user.dto.MemberDto;
import com.zmx.user.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 用户服务对外接口实现类
 * @ClassName: MemberRest
 * @Author zhaomxr
 * @Date 2022-01-05 15:14
 */
@RestController
public class MemberRest implements MemberApi {

    @Autowired
    private MemberService memberService;

    @Override
    public MemberDto findByOpenid(String openid) {
        return memberService.findByOpenid(openid);
    }

    @Override
    public MemberDto findByMemberId(Long memberId) {
        return memberService.findByMemberId(memberId);
    }
}
